package com.chushouya.product.dto.admin.attribute;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * SKU属性更新DTO
 */
@Data
@ApiModel(value = "SKU属性更新DTO")
public class AttributeItemUpdateDTO {

    @ApiModelProperty(value = "SKU属性ID", required = true)
    @NotNull(message = "SKU属性ID不能为空")
    private Long attrItemId;

    @ApiModelProperty(value = "分类ID", required = true)
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;

    @ApiModelProperty(value = "SKU属性名称", required = true)
    @NotBlank(message = "SKU属性名称不能为空")
    private String attrName;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    private Integer status;
}
